package com.atguigu.es.repository;

import com.atguigu.es.pojo.User;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author Jia Fa
 * @create 2021-12-05 21:45
 */
public interface UserRepository extends ElasticsearchRepository<User,Long> {

    List<User> findByAgeBetween(Integer from ,Integer to);
}
